<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <title>系统设置</title>
    <?php require 'templates/common/head.html'; ?>
    <link href="../business/resource/css/hermes.css" rel="stylesheet">
    <link href="../business/resource/js/calendar/calendar-blue.css" type="text/css" rel="stylesheet">
    <script src="../business/resource/js/calendar/calendar.js" type="text/javascript"></script>
    <script src="../business/resource/js/hermes.js"></script>
    <style type="text/css">
        .divleft{width: 20%; float: left; text-align:left; border-right: solid 1px #d5d5d5; margin-right: 2% }

        .divright{ width: 12%; float:right; text-align: right;}


    </style>
</head>
<body>


<div class="container-fluid">
    <?php require 'templates/common/nav.html'; ?>
    <div class="panel panel-primary">
        <!--<a href="<?=$send_text_url?>"><h4>发送文本消息</h4></a>-->
        <div class="panel-heading text-center"><h3 class="panel-title">测试人员</h3></div>
        <div class="panel-body">
            <div class="panel-heading text-right"><a href="index.php?m=test_user&a=form_test_user" type="button" class="btn btn-primary">添加测试人员信息</a></div>
            <div class="panel-group"   id="accordion" role="tablist" aria-multiselectable="true">
                <div class="panel panel-default" >
                    <div class="panel-heading" style="background-color:#d5d5d5" >
                        <div class="row">
                            <div class="col-xs-4 text-justify" style="width:100%;">
                                <div class="divleft"><b  >昵称</b></div>
                                <div class="divleft"><b  >openID</b></div>
                                <div class="divright"><b  >操作</b></div>

                            </div>
                        </div>
                    </div>
                </div>
                <div class="panel panel-default">
                  <?php foreach($test_user as $key =>$value):?>
                    <div class="panel-heading"  style=" <?php if($key%2==0){echo "background-color:#DFF0D8;";}else{ echo "border-top: solid 2px #ffffff;";}?>">
                    <div class="row">
                        <div class="col-xs-4 text-justify" style="width:100%;">
                            <div class="divleft"><span><?= $value['name']?></span></div>
                            <div class="divleft"><span><?= $value['openId']?></span></div>
                            <div class="divright">
                                <a class="btn btn-primary btn-xs" href="index.php?m=test_user&a=form_test_user&id=<?php echo $value['id']?>" >编辑</a>

                                <a class="btn btn-primary btn-xs" href="index.php?m=test_user&a=del&id=<?=$value['id']?>" onclick=" javascript:  return  confirm('删除该数据后不可恢复，是否确认删除?')">删除</a>

                            </div>

                        </div>
                    </div>
                </div>
                <?php endforeach; ?>

            </div>
                </div>

            </div>
        </div>
    </div>
</div>
<?php require 'templates/common/foot.html'; ?>
</body>
</html>